import request from '@/utils/request';

/**
 * 登录
 * @param params
 * @returns {Promise<any>}
 */
export async function login(params) {
  return request('/lesson/manage/authority/login', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

/**
 * 登出
 * @param params
 * @returns {Promise<any>}
 */
export async function logout(params) {
  return request('/lesson/manage/authority/logout', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

/**
 * 获得当前用户的值
 * @param params
 * @returns {Promise<any>}
 */
export async function getCurrentUser(params) {
  return request('/lesson/manage/authority/get_current_person', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}


